package com.zhentao.model.article.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("ap_article_content")
public class ApArticleContent implements Serializable {

    /**
     * id 自增    type = IdType.ID_WORKER   全局唯一   Idworker (数值类型)
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;


    /**
     * 文章id
     */
    @TableField("article_id")
    private Long articleId;

    /**
     * 文章内容
     */
    @TableField("content")
    private String content;
}
